<?php


namespace app\zhongcan\validate;


use think\Validate;

class NoticeValidate extends Validate
{
    protected $rule = [
        'title'=>'require',
        'abstract'=>'require',
        'content'=>'require',
        'author'=>'require',
    ];

    protected $message = [
        'title.require'=>'标题不能为空',
        'abstract.require'=>'摘要不能为空',
        'content.require'=>'内容不能为空',
        'author.require'=>'作者不能为空'
    ];

    protected $scene = [
        'add'=>['title','abstract','content','author']
    ];
}